import router from "./router";
const allLang= {
  global:{
    platName:['融合视频服务平台','STARTIMES IPTV PLATFORM'],
    notFound:['抱歉，你访问的页面未找到','Sorry, the page you visited does not exist.'],
    back:['返回','Back'],
    backHome:['返回首页','Back to Home'],
    confirm:['确定','confirm'],
    operate:['操作','operate'],
    edit:['编辑','edit'],
    delete:['删除','delete'],
    pleaseSelect:['请选择','please select'],
    confirmDelete:['是否确认删除 ','Do you confirm to delete it '],
    confirmDeleteSelect:['是否确认删除所选内容','Do you confirm to delete you selection '],
    deleteSuccess:['删除成功','delete successfully'],
    pleEnt:['请输入','please enter'],
    pleSel:['请选择','please select'],
    upload:['上传','Upload'],
    uploading:['正在上传','uploading'],
    upLoadVideoTip:['提示信息','confirm info'],
    doNotSupportFormatting:['所选文件中包含不支持的文件格式','The selected files contain unsupported file formats.'],
    makeSureToGiveUp: ['列表中有未上传完成的文件，确定要放弃上传吗?','There are files in the list have not been uploaded. Are you sure to abandon the uploading?'],
    recheckTip: ['请检查数据再次提交','Please check the data and commit again.'],
    stay: ['留下','stay'],
    leave: ['离开','leave'],
    saveSucc: ['保存成功','saved successfully'],
    saveErr: ['保存失败','save failed'],
    add: ['新增','add'],
    enterInteger: ['请输入正整数','please enter integer'],
    notBigthan: ['输入数字不得大于','The value cannot be greater than or equal to'],
    notEmpty: ['输入不能为空','The input cannot be empty'],
  },
  router,
}
// console.log('allLang',allLang)
let messages = {en: {}, ch: {}};

for (const key in allLang) {
  messages.ch[key]={}
  messages.en[key]={}
  for (const j in allLang[key]) {
    if(allLang[key][j][0])messages.ch[key][j]=allLang[key][j][0];
    if(allLang[key][j][1])messages.en[key][j]=allLang[key][j][1];
  }
}

export {
  messages
}
